package com.example.blog.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Article {
    private Integer id;

    private Integer userid;
    @NotEmpty
    private String title;
    private String coverurl;
    @NotEmpty
    private String abstracts;
    @NotEmpty
    private String content;
    @NotNull
    private Integer category;
    private LocalDateTime createtime;
    @JsonIgnore
    private LocalDateTime updatetime;

    private Integer status;
    private String message;
    private Integer likenumber;

}
